<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  let arr = [1,2,3,4,5]
  var arr1 = new Array(5)
  arr1[0] = 1
  arr1[1] = 2
  arr1[2] = 3
  arr1[3] = 4
  arr1[4] = 5
  console.log(arr1)
  var arr2 = new Array();
  arr2.push("a")
  arr2.push("b")
  arr2.push("c")
  arr2.push("d")
  console.log(arr2)

  var arr3 = ["a","b","g"]

  var arr4 = new Array("a","b","c")

  for (var i = 0; i < arr4.length; i++) {
    console.log(arr4[i])
  }

  var s = arr4.pop();
  console.log(s)
  console.log(arr4)
  arr3.splice(2,1)
  console.log(arr3)
</script>
</body>
</html>